package com.example.system.dao;

import com.example.system.model.RoleResource;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleResourceDao {
    int deleteByPrimaryKey(Integer id);

    int insert(RoleResource record);

    int insertSelective(RoleResource record);

    RoleResource selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RoleResource record);

    int updateByPrimaryKey(RoleResource record);

    void insertList(@Param("roleResources") List<RoleResource> roleResources);

    void deleteByRoleId(@Param("roleId") Integer roleId);

    void deleteBatchByRoleIds(@Param("roleIds") List<Integer> roleIds);


    void deleteBatchByResourceIds(@Param("resourceIds") List<Integer> resourceIds);

}